package org.blade.personal.test;

import org.blade.personal.framework.components.annotation.Column;
import org.blade.personal.framework.components.annotation.Entity;
import org.blade.personal.framework.components.annotation.Id;
import org.blade.personal.framework.components.annotation.Table;
import org.blade.personal.framework.entity.AbstractEntityAlies;
import org.blade.personal.framework.orm.base.IntegerAlias;
import org.blade.personal.framework.orm.base.StringAlias;
import org.blade.personal.mode.sys.SystemRole;

@Entity()
@Table(name = "sys_role")
public class Role  extends AbstractEntityAlies<SystemRole> {

	@Id
	@Column(dataType = "int",javaType = "java.lang.Integer", name = "id")
	public IntegerAlias id;
	
	@Column(dataType = "varchar",javaType = "java.lang.String", name = "name")
	public StringAlias name;

	
	public Role(String alies) {
		super(alies);
		this.alies = alies;
	}


	public Integer getId() {
		return id.getVal();
	}


	public void setId(IntegerAlias id) {
		this.id = id;
	}


	public String getName() {
		return name.getVal();
	}


	public void setName(StringAlias name) {
		this.name = name;
	}
	
	
}
